<?php

//	Author: 	Christos Polydorou
//	Email:		std04237@di.uoa.gr
//	Purpose: 	Define errors for DB lever

define("DB_OK", "0"); // Function succeded
define("DB_ERROR_GENERAL", "-1"); // Failed to execute stored procedure
define("DB_ERROR_REGISTER", "-2"); // Failed to register user, username or password already exist
define("DB_ERROR_USERDISABLED", "-3"); // User is disabled
define("DB_ERROR_WRONGPASSWORD", "-4"); // Wrong password
define("DB_ERROR_USERLOCKED", "-5"); // User account is locked
define("DB_ERROR_CATEGORYEXISTS", "-6"); // There is a category with the same name and the same owner
define("DB_ERROR_CANNOTDELETECATEGORY", "-7"); // Cannot delete the category
define("DB_ERROR_ATTRIBUTEEXISTS", "-8"); // Attribute already exists
define("DB_ERROR_CANNOTDELETEATTRIBUTE", "-9"); // Cannot delete an attribute from a category
define("DB_ERROR_CANNOTCHANGEOWNER", "-10"); // Cannot change the owner of the category
define("DB_ERROR_CANNOTADDENTITY", "-11"); // Cannot add entinty to category
define("DB_ERROR_CANNOTREMOVEENTITY", "-12"); // Cannot remove entity from category
define("DB_ERROR_CANNOTGETVALUESFORENTITY", "-13"); // Cannot get the values for an entity
define("DB_ERROR_ACTIVATION", "-14"); // Cannot get the activation code for a user
define("DB_ERROR_CANNOT_GET_CATEGORIES", "-15");

?>